Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-207

HelpFormatter strips leading whitespaces in the footer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3
    • Help formatter
    • None

    Description

      I discovered a bug in Commons CLI while using it through Groovy's CliBuilder. See the following issue:

      http://jira.codehaus.org/browse/GROOVY-4313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

      Copied:
      The following code:

      def cli = new CliBuilder(footer: "line1:\n line2:\n")
      cli.usage()

      Produces the following output:

      line1
      line2

      Note that there are no whitespaces before "line2". Replacing them with "\t" doesn't solve the problem either.

      Attachments

        Activity

          People

            Unassigned Unassigned
            balor123 Uri Moszkowicz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: